﻿<UserControl x:Class="MobSoft.Top10"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="800" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Center" >
        <sdk:Label Height="28" HorizontalAlignment="Center"  Margin="0,20,0,0" Name="lblTop10" VerticalAlignment="Top" Width="120" Content="Top 10" FontFamily="Trebuchet MS" FontSize="24" FontStretch="UltraExpanded" FontStyle="Normal" FontWeight="ExtraBold" />
        <sdk:DataGrid AutoGenerateColumns="False" Height="Auto" Width="Auto" HorizontalAlignment="Center"  Margin="0,60,0,0" Name="DGTop10" VerticalAlignment="Top"  MinColumnWidth="0">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn x:Name="Name" Binding="{Binding Name1}" Header="Name"></sdk:DataGridTextColumn>
                <sdk:DataGridTextColumn x:Name="Price" Binding="{Binding Price1}" Header="Price"></sdk:DataGridTextColumn>
                <sdk:DataGridTextColumn x:Name="Platform" Binding="{Binding Platform1}" Header="Platform"></sdk:DataGridTextColumn>
                <sdk:DataGridTextColumn x:Name="Size" Binding="{Binding Size1}" Header="Size"></sdk:DataGridTextColumn>
                <sdk:DataGridTextColumn x:Name="Resoluton" Binding="{Binding Resolution1}" Header="Resolution"></sdk:DataGridTextColumn>
                <sdk:DataGridTextColumn x:Name="UploadDate" Binding="{Binding Upload_Date1}" Header="Upload Date"></sdk:DataGridTextColumn>
                <!--<sdk:DataGridTextColumn x:Name="VideoURL" Binding="{Binding Video_URL1}" Header="Video URL">
                   
                </sdk:DataGridTextColumn>-->
                <sdk:DataGridTemplateColumn Header="Video URL">
                    <sdk:DataGridTemplateColumn.CellTemplate>
                        
                        <DataTemplate>
                            <HyperlinkButton Name="VideoLinks" Content="See Video" NavigateUri="{Binding Video_URL1}" ClickMode="Release" >
                                
                            </HyperlinkButton>
                        </DataTemplate>
                    </sdk:DataGridTemplateColumn.CellTemplate>
                </sdk:DataGridTemplateColumn>

            </sdk:DataGrid.Columns>
        </sdk:DataGrid>

    </Grid>
</UserControl>
